//--------------------------------------------------------------------------------------------------------
// 
// Author: Zachary Gay
// Date: 8/23/2012
// Copyright (c) 2012 Zachary Gay.  All Rights Reserved.
//
// Filename: Card.m
//
//--------------------------------------------------------------------------------------------------------
#import "Card.h"

// Private Interface
@interface Card ()
{
    BOOL isTapped;
}

@end



@implementation Card

@synthesize cost;

#pragma mark - Constructor

- (Card *) initWithManaCost:(ManaGroup *)_cost
{
    if (self = [super init])
    {
        self.cost = _cost;
    }
    
    return self;
}

#pragma mark - Tap and Untap

- (void) tap
{
    if (isTapped == YES)
    {
        NSLog(@"ERROR: -tap called on a card that was already tapped!");
    }
    else 
    {
        isTapped = YES;
    }
}

- (void) untap
{
    isTapped = NO;
}

- (BOOL) isTapped
{
    return isTapped;
}

@end
